package com.neusoft.bizcore.activiti.enums;

import java.util.Arrays;
import java.util.List;

public enum PendingDataStatusEnum implements IDictionary {
    undeal(1, "未处理"),
    dealed(2, "已处理"),
    dealError(3, "处理异常");

    private int value;
    private String label;

    private PendingDataStatusEnum(final int value, final String label) {
        this.value = value;
        this.label = label;
    }

    @Override
    public int getValue() {
        return this.value;
    }

    @Override
    public String getLabel() {
        return this.label;
    }

    public static PendingDataStatusEnum parse(final int value) {
        PendingDataStatusEnum result = null;
        switch (value) {
        case 1:
            result = PendingDataStatusEnum.undeal;
            break;
        case 2:
            result = PendingDataStatusEnum.dealed;
            break;
        case 3:
            result = PendingDataStatusEnum.dealError;
            break;

        }
        return result;
    }

    public static List<PendingDataStatusEnum> getEnumValues() {
        return Arrays.asList(PendingDataStatusEnum.values());
    }

}
